using net_work.Data.DTO.Hmw;
using net_work.Data.Entity.Hmw;

namespace net_work.IRepository.Hmw;

public interface IQuestionAnswerSubmissionRepository : IRepository<QuestionAnswerSubmission>
{
    /// <summary>
    /// 更新题目答案提交信息
    /// </summary>
    /// <param name="questionAnswerSubmissionUpdateRequestBackend">更新题目答案提交信息</param>
    /// <returns>题目答案提交ID</returns>
    Task<long> UpdateAsync(QuestionAnswerSubmissionUpdateRequestBackend questionAnswerSubmissionUpdateRequestBackend);
    
    /// <summary>
    /// 提交作业答案
    /// </summary>
    /// <param name="questionAnswerSubmissionUpdateRequestBackend">提交作业答案</param>
    /// <returns>是否成功</returns>
    Task<bool> SubmitAsync(QuestionAnswerSubmissionUpdateRequestBackend questionAnswerSubmissionUpdateRequestBackend);
}